#include "huiyimainwindow.h"
#include "ui_huiyimainwindow.h"
#include <QMessageBox>

huiyiMainWindow::huiyiMainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::huiyiMainWindow)
{
    ui->setupUi(this);
}

huiyiMainWindow::~huiyiMainWindow()
{
    delete ui;
}

//关闭事件，点右上角叉关闭登录页面
void huiyiMainWindow::closeEvent(QCloseEvent *event)
{
    if(QMessageBox::question(this,"提示","是否关闭") == QMessageBox::Yes)
    {
        Q_EMIT SIG_close();
        event->accept();
    }
    else
    {
        event->ignore();
    }
}
